package com.koron.device.zsjRemote.mapper;

import com.koron.bean.base.Attachment;
import com.koron.device.bean.Equipment;
import com.koron.device.zsjRemote.bean.CollaborationRecord;
import com.koron.device.zsjRemote.bean.CollaborationWorker;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ZsjRemoteMapper {

	Equipment getById(@Param("id") String id);

	List<String> queryOrderByWorker(@Param("worker") String worker, @Param("is_out") int is_out);

	List<Attachment> queryAttachmentByIds(@Param("card_step_ids") List<String> card_step_ids);

	List<Equipment> queryByNameAndKKS(@Param("equipment") Equipment equipment);

	String getTypeByKKS(@Param("encode") String encode);

	List<CollaborationRecord> queryCollaborationRecord();

	//List<CollaborationRecord> queryCollaborationRecordByWorker(@Param("account") String account, @Param("name") String name);

	Integer saveCollaboration(@Param("record") CollaborationRecord record);

	Integer saveCollaborationWorker(@Param("workers") List<CollaborationWorker> workers);
}
